/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


// Make sure the document is loaded before proceeding ...
$(document).ready(function(){
  
    // Assign functions to the 4 buttons
    $('#left').bind("click", left);
    $('#right').bind("click", right);
    $('#top').bind("click", top);
    $('#bottom').bind("click", bottom);

function left() {
        
    jAlert({
		headingText: 'jQuery jAlerts Demos'+result_name,                
            contentText: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi rhoncus et elit id rutrum. Nunc ac quam id erat hendrerit pretium vitae vel felis. Quisque fermentum elit non velit auctor'
        },"left"); // <---- Notice how this is changed to "left"
    
  } // end left() function
    
    function right() {
        
    jAlert({
            // No properties are being changed ...
        },"right"); // <---- Notice how this is changed to "right"
    
  } // end right() function
    
    function top() {
        
    jAlert({
            // No properties are being changed ...
        },"top"); // <---- Notice how this is changed to "top"
    
  } // end top() function
    
    function bottom() {
    
    jAlert({
		headingText: 'Results',
                message: '<h1>hello<h1>',
            contentText: '<h1>hello</h1  http://graph.facebook.com/67563683055/picture?type=square>',
            
            ///" "+result_match+" "+result_id,
        },"bottom"); // <---- Notice how this is changed to "left"
    
    
  } // end bottom() function 
  
}); // ---------- end ready() function ---------- //

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36251023-1']);
  _gaq.push(['_setDomainName', 'jqueryscript.net']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
